package com.atguigu.spzx.cart;

import com.atguigu.spzx.common.annotation.EnableUserLoginAuthInterceptor;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
import org.springframework.cloud.openfeign.EnableFeignClients;

/**
 * ClassName: ${NAME}
 * Package: ${PACKAGE_NME}
 * Description:
 *
 * @Author:xiaohei
 * @Create 2024/5/23 9:18
 * Version 1.0
 */
@SpringBootApplication(exclude = DataSourceAutoConfiguration.class)  // 排除数据库的自动化配置，Cart微服务不需要访问数据库
@EnableFeignClients(basePackages = {"com.atguigu.spzx"})
@EnableUserLoginAuthInterceptor  //自定义注解  加载Thread中的信息
public class CartApplication8513 {
    public static void main(String[] args) {
        SpringApplication.run(CartApplication8513.class , args) ;
    }

}